[0.16.0] - 2023-10-15
Fixed
- Correct typings for Qwik components
Added
- Apply a few optmizations on the resulting CSS generated from
panda cssgen
command - Add closed condition
&:is([closed], [data-closed], [data-state="closed"])
- Adds a new
--minimal
flag for the CLI on the panda cssgen
command to skip generating CSS for theme tokens,
preflight, keyframes, static and global css
Thich means that the generated CSS will only contain the CSS related to the styles found in the included files.
Note that you can use a glob
to override the config.include
option like this:
panda cssgen "src/**/*.css" --minimal
This is useful when you want to split your CSS into multiple files, for example if you want to split by pages.
Use it like this:
panda cssgen "src/**/pages/*.css" --minimal --outfile dist/pages.css
In addition to the optional glob
that you can already pass to override the config.include option, the panda cssgen
command now accepts a new {type}
argument to generate only a specific type of CSS:
- preflight
- tokens
- static
- global
- keyframes
Note that this only works when passing an --outfile
.
You can use it like this:
panda cssgen "static" --outfile dist/static.css